package com.neu.questionnaireplus.dao;

import com.neu.questionnaireplus.entity.User;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {
  /** 
  * @Description: 查询所有用户 
  * @Param: [] 
  * @return: java.util.List<com.neu.questionnaireplus.entity.User> 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31 
  */ 
  List<User> queryUser();

  /** 
  * @Description: 查询未被删除的用户 
  * @Param: [] 
  * @return: java.util.List<com.neu.questionnaireplus.entity.User> 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31 
  */ 
  List<User> queryExistUser();
  
  /** 
  * @Description: 通过租户名查询租户 
  * @Param: [belongTenement]
  * @return: java.util.List<com.neu.questionnaireplus.entity.User> 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/11/7 
  */ 
  List<User> queryUserByTenementName(String belongTenement);

  /** 
  * @Description: 模糊查询用户 
  * @Param: [user]
  * @return: java.util.List<com.neu.questionnaireplus.entity.User> 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31 
  */ 
  List<User> selectUserList(User user);

  /** 
  * @Description: 根据id查询用户并返回 
  * @Param: [id] 
  * @return: com.neu.questionnaireplus.entity.User 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31 
  */ 
  User queryUserByID(String id);

  /** 
  * @Description: 插入一个用户 
  * @Param: [user] 
  * @return: int 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31 
  */ 
  int insertUser(User user);

  /** 
  * @Description: 根据id更新用户 
  * @Param: [user] 
  * @return: int 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31 
  */ 
  int updateUser(User user);

  /** 
  * @Description: 根据id删除用户 
  * @Param: [id] 
  * @return: int 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31 
  */ 
  int deleteUser(String id);

  /**
  * @Description: 根据电话查询用户
  * @Param: [telnumber]
  * @return: com.neu.questionnaireplus.entity.User
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/10/31
  */
  User queryUserByPhone(String telnumber);

 /**
 * @Description: 通过用户名精确查询用户
 * @Param: [username]
 * @return: com.neu.questionnaireplus.entity.User
 * @Author: ~FHX~ (:TSunS:)
 * @Date: 2022/10/31
 */
  User queryUserByUsername(String username);

 /**
 * @Description: 通过用户名模糊查询用户
 * @Param: [username]
 * @return: java.util.List<com.neu.questionnaireplus.entity.User>
 * @Author: ~FHX~ (:TSunS:)
 * @Date: 2022/10/31
 */
  List<User> queryUserByName(String username);

  /** 
  * @Description: 通过手机号精确查找用户 
  * @Param: [telnumber] 
  * @return: com.neu.questionnaireplus.entity.User 
  * @Author: ~FHX~ (:TSunS:)
  * @Date: 2022/11/2 
  */ 
  User queryUserByTelnumber(String telnumber);

}
